import { Length,IsInt, MaxLength, MinLength,Allow,Validate } from 'class-validator';

export class UserLoginModel {
  @MinLength(11,{
    message: "手机号必须11位"
  })
  userphone: string;

  @MinLength(6,{
    message: "验证码必须6位"
  })
  smscode?: string;

  // @IsInt({
  //   message: "手机号必须number类型，且11位"
  // })
  // userphone?: number;
}